package itsm.isperp.framework.web.domain;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2013-8-14
 * 
 */
public class CountQueryFilter {

	CountQueryType queryType;

	String sql;

	public CountQueryFilter() {
	}

	public CountQueryFilter(CountQueryType queryType, String sql) {
		this.queryType = queryType;
		this.sql = sql;
	}

	public CountQueryFilter(String sql) {
		queryType = CountQueryType.CONDITION;
		this.sql = sql;

	}

	public static CountQueryFilter newInstance(String sql) {
		return new CountQueryFilter(sql);
	}

	public static CountQueryFilter newInstance(CountQueryType queryType,
			String sql) {
		return new CountQueryFilter(sql);
	}

	public CountQueryType getQueryType() {
		return queryType;
	}

	public void setQueryType(CountQueryType queryType) {
		this.queryType = queryType;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

}
